import service from '@/utils/request'

// @Tags CfgPrintingPosition
// @Summary 创建cfgPrintingPosition表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CfgPrintingPosition true "创建cfgPrintingPosition表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cfgPrintingPosition/createCfgPrintingPosition [post]
export const createCfgPrintingPosition = (data) => {
  return service({
    url: '/cfgPrintingPosition/createCfgPrintingPosition',
    method: 'post',
    data
  })
}

// @Tags CfgPrintingPosition
// @Summary 删除cfgPrintingPosition表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CfgPrintingPosition true "删除cfgPrintingPosition表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cfgPrintingPosition/deleteCfgPrintingPosition [delete]
export const deleteCfgPrintingPosition = (params) => {
  return service({
    url: '/cfgPrintingPosition/deleteCfgPrintingPosition',
    method: 'delete',
    params
  })
}

// @Tags CfgPrintingPosition
// @Summary 批量删除cfgPrintingPosition表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cfgPrintingPosition表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cfgPrintingPosition/deleteCfgPrintingPosition [delete]
export const deleteCfgPrintingPositionByIds = (params) => {
  return service({
    url: '/cfgPrintingPosition/deleteCfgPrintingPositionByIds',
    method: 'delete',
    params
  })
}

// @Tags CfgPrintingPosition
// @Summary 更新cfgPrintingPosition表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CfgPrintingPosition true "更新cfgPrintingPosition表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cfgPrintingPosition/updateCfgPrintingPosition [put]
export const updateCfgPrintingPosition = (data) => {
  return service({
    url: '/cfgPrintingPosition/updateCfgPrintingPosition',
    method: 'put',
    data
  })
}

// @Tags CfgPrintingPosition
// @Summary 用id查询cfgPrintingPosition表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CfgPrintingPosition true "用id查询cfgPrintingPosition表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cfgPrintingPosition/findCfgPrintingPosition [get]
export const findCfgPrintingPosition = (params) => {
  return service({
    url: '/cfgPrintingPosition/findCfgPrintingPosition',
    method: 'get',
    params
  })
}

// @Tags CfgPrintingPosition
// @Summary 分页获取cfgPrintingPosition表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cfgPrintingPosition表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cfgPrintingPosition/getCfgPrintingPositionList [get]
export const getCfgPrintingPositionList = (params) => {
  return service({
    url: '/cfgPrintingPosition/getCfgPrintingPositionList',
    method: 'get',
    params
  })
}
